﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.AspNetCore.Identity;
using Microsoft.EntityFrameworkCore;

namespace Identity.Models;

[Table("UserRoles")]
[Index("RoleId", Name = "IX_UserRoles_RoleId")]
public partial class UserRole:IdentityUserRole<string>
{

    [ForeignKey("UserId")]
 
    public virtual User? User { get; set; }

    [ForeignKey("RoleId")]

    public virtual Role? Role { get; set; }
}
